<h1>Team Details</h1>

<cfoutput>

	<p>
		<span>Teamid</span> <br />
		#team.teamid#
	</p>

	<p>
		<span>Teamname</span> <br />
		#team.teamname#
	</p>

	<p>
		<span>Players in the team:</span><br />
	<cfif findCurrentTeamPlayers.recordCount>
		<cfloop query="findCurrentTeamPlayers" startrow="1" endrow="#findCurrentTeamPlayers.recordCount#">
			#findCurrentTeamPlayers.FirstName# #findCurrentTeamPlayers.LastName#
			
			#findCurrentTeamPlayers.Position#
		
			#linkTo(controller="players",action="display",key=findCurrentTeamPlayers.playerID,text="Display player")#
			#linkTo(controller="teamPlayers",action="removeTeamPlayer",key=findCurrentTeamPlayers.teamPlayerID,text="Remove player")#
			<br />
		</cfloop>
	<cfelse>
		No players in this team, yet...
	</cfif>	
	</p>
	
	#includePartial("/teamplayers/addTeamPlayers")#

	#linkTo(text="Return to the listing", action="index")# 
	| 
	#linkTo(text="Edit this team", action="edit", key=team.teamid)#
	
</cfoutput>
